More Jeeps rework commits. With this in place, it all builds.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 20 Apr 2006 02:34:02 +0000 (02:34 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 20 Apr 2006 02:34:02 +0000 (02:34 +0000)
gpsbabel/Makefile.in
gpsbabel/brauniger_iq.c
gpsbabel/garmin.c
gpsbabel/jeeps/gpsserial.c

index 6f9cbc6fbba8eb8a05d934886a698b7b93a70ea9..63abbd1851d858040374dc66b65a3b012f7e4d05 100644 (file)
@@ -56,8 +56,10 @@ FILTERS=position.o duplicate.o arcdist.o polygon.o smplrout.o \
 JEEPS=jeeps/gpsapp.o jeeps/gpscom.o \
        jeeps/gpsmath.o jeeps/gpsmem.o  \
        jeeps/gpsprot.o jeeps/gpsread.o \
+       jeeps/gpsdevice.o jeeps/gpsdevice_ser.o jeeps/gpsdevice_usb.o \
        jeeps/gpsrqst.o jeeps/gpssend.o jeeps/gpsserial.o jeeps/gpsutil.o \
-       jeeps/gpsusbread.o jeeps/gpsusbsend.o @OSJEEPS@
+       jeeps/gpsusbread.o jeeps/gpsusbsend.o \
+       jeeps/gpsusbcommon.o @OSJEEPS@
 
 # Extra modules in Jeeps that we don't use
 #      jeeps/gpsfmt.o jeeps/gpsinput.o jeeps/gpsproj.o
index 8026d9795003e5c423e3d387333f749b45d58ab0..003edeb9b96d6a3ceb6eb738c5fc145d14832dcc 100644 (file)
@@ -27,6 +27,8 @@ static char *port;
 
 #define MYNAME "BRAUNIGER-IQ"
 #define PRESTRKNAME "PRESALTTRK"
+#define GPS_Serial_On(a, b) 0
+#define GPS_Serial_Off(a, b) 0
 
 static enum {
     st_sync,
index f960bdfbf5242fd595f040dd2e3c60794e791a4a..2b5b76a2c5b30b90f6a102090d1ff7c3992d7ad8 100644 (file)
@@ -244,8 +244,8 @@ waypt_read(void)
                } else {
                        wpt_tmp->altitude = way[i]->alt;
                }
-               if (way[i]->Time_populated)
-                       wpt_tmp->creation_time = way[i]->Time;
+               if (way[i]->time_populated)
+                       wpt_tmp->creation_time = way[i]->time;
                
                waypt_add(wpt_tmp);
                GPS_Way_Del(&way[i]);
@@ -528,7 +528,7 @@ waypoint_write(void)
                } else {
                        way[i]->alt = wpt->altitude;
                }
-               way[i]->Time = wpt->creation_time;
+               way[i]->time = wpt->creation_time;
                i++;
        }
 
index 3e586e6d33fbf92dd96675eaf74af203dcb6fc81..cfc97705437d4b95f6aa0be712ad26079d1ebe93 100644 (file)
@@ -229,51 +229,6 @@ typedef struct {
        struct termios gps_ttysave;
 } posix_serial_data;
 
-/* @func GPS_Serial_Restoretty ***********************************************
-**
-** Save tty information for the serial post to be used
-**
-** @param [r] port [const char *] port e.g. ttyS1
-**
-** @return [int32] false upon error
-************************************************************************/
-
-static int32 GPS_Serial_Savetty(int32 fd)
-{
-    if(tcgetattr(fd,&gps_ttysave)==-1)
-    {
-       gps_errno = HARDWARE_ERROR;
-       GPS_Serial_Error("SERIAL: tcgetattr error");
-       return 0;
-    }
-
-    return 1;
-}
-
-
-/* @func GPS_Serial_Restoretty ***********************************************
-**
-** Restore serial post to condition before AJBGPS called
-**
-** @param [r] port [const char *] port e.g. ttyS1
-**
-** @return [int32] false upon error
-************************************************************************/
-
-static int32 GPS_Serial_Restoretty(int fd)
-{
-    if(tcsetattr(fd, TCSAFLUSH, &gps_ttysave)==-1)
-    {
-       gps_errno = HARDWARE_ERROR;
-       GPS_Serial_Error("SERIAL: tcsetattr error");
-       return 0;
-    }
-
-    return 1;
-}
-
-#endif
-
 /* @func GPS_Serial_Open ***********************************************
 **
 ** Open a serial port 8bits 1 stop bit 9600 baud